package com.itheima.内部类.匿名内部类.抽象类继承匿名内部类;

/**
 * @Author 王加鑫
 * @Date 2021/5/9 15:31
 * @Version 1.0
 */
public class AnimalTest {
    public static void main(String[] args) {
        Animal animal = new Animal() {
            @Override
            void eat() {
                System.out.println("老鼠爱大米");

            }
        };

        animal.eat();
    }
}
